The functions here are asynchronous to handle control back to the
mainloop while waiting for an action to complete, not to run operations
in parallel. That is, the race condition the rule is protecting against
isn't an issue here, so disable the error.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/627
for (let i = 0; i < 2; i++) {
Scripting.scriptEvent('applicationsShowStart');
+ // eslint-disable-next-line require-atomic-updates
Main.overview._dash.showAppsButton.checked = true;
yield Scripting.waitLeisure();
Scripting.scriptEvent('applicationsShowDone');
+ // eslint-disable-next-line require-atomic-updates
Main.overview._dash.showAppsButton.checked = false;
yield Scripting.waitLeisure();
}
yield Scripting.sleep(1000);
Scripting.scriptEvent('applicationsShowStart');
+ // eslint-disable-next-line require-atomic-updates
Main.overview._dash.showAppsButton.checked = true;
yield Scripting.waitLeisure();